package com.wlsk.license.controller.plate;

import com.wlsk.license.common.result.Result;
import com.wlsk.license.dto.ChannelOrderDetail;
import com.wlsk.license.dto.request.ChannelOrderReqDto;
import com.wlsk.license.service.IChannelOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 查询渠道订单信息
 * @author: liuzhangbin
 * @date: 2025/8/27
 */
@Slf4j
@RestController
@AllArgsConstructor
@Api(tags = "包车牌审核")
@RequestMapping("/plate/channelOrder")
public class ChannelOrderController {

    @Autowired
    private IChannelOrderService channelOrderService;

    @ApiOperation(value = "渠道商订单信息查询")
    @PostMapping("/detail")
    public Result<ChannelOrderDetail> detail(@RequestBody ChannelOrderReqDto reqDto) {
        return Result.success(channelOrderService.detail(reqDto));
    }
}
